package TCP;

import java.io.DataOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.net.InetAddress;
import java.net.Socket;
import java.net.UnknownHostException;

public class Send {
    public static void main(String[] args) throws IOException {
        Socket socket = new Socket( InetAddress.getLocalHost(),9090);
        OutputStream os = socket.getOutputStream();
        DataOutputStream dos = new DataOutputStream(os);
        dos.writeUTF("Hello World");
        dos.close();
        socket.close();
    }
}
